package com.lxy.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName(value = "history_orders")
public class HistoryOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id ;
    //订单id
    private Long orderId;
    //城市
    private String city;
    //下单用户的id
    private Long userId;
    //收货人的姓名
    private String consigneeName;
    //收货人的手机号
    private String consigneePhone;
    //骑手的id
    private Long riderId;
    //要购买的货物
    private String goods;
    //货物图
    private String goodsImg;
    //购买的货物类型
    private String type;
    //购买地址，能够指定，也能让骑手在附近购买
    private String purchaseAddress;
    //购买地址经度
    private Double purchaseLongitude;
    //购买地址纬度
    private Double purchaseLatitude;
    //收货地址
    private String deliveryAddress;
    //收货地址经度
    private Double deliveryLongitude;
    //收货地址纬度
    private Double deliveryLatitude;
    //订单创建时间
    private LocalDateTime createTime;
    //订单结束时间
    private LocalDateTime endTime;
    //金额
    private BigDecimal amount;
    //对骑手的评分
    private Integer riderAppraise;

}
